import axios from '@/utils/axios/http'

/**
 * 保存评论
 */
export function remarkSave(data) {
  return axios({
    url: '/remark/remarkSave',
    headers: {
      isToken: false
    },
    method: 'post',
    data: data
  })
}


/**
 * 查询评论
 */
export function searchRemark(data) {
  return axios({
    url: '/remark/searchRemark',
    headers: {
      isToken: false
    },
    method: 'post',
    data: data
  })
}

/**
 * 回复评论
 */
export function replayRemark(data) {
  return axios({
    url: '/remark/replayRemark',
    headers: {
      isToken: false
    },
    method: 'post',
    data: data
  })
}

/**
 * 上传餐品
 */
export function remarkReply(data) {
  return axios({
    url: '/users/upFood',
    headers: {
      isToken: false
    },
    method: 'post',
    data: data
  })
}

/**
 * 更新餐品
 */
export function updataFood(data) {
  return axios({
    url: '/users/updataFood',
    headers: {
      isToken: false
    },
    method: 'post',
    data: data
  })
}

/**
 * 删除餐品
 */
export function deleteFood(data) {
  return axios({
    url: '/users/deleteFood',
    headers: {
      isToken: false
    },
    method: 'post',
    data: data
  })
}

/**
 * 获取当前餐品
 */
export function currentFood(data) {
  return axios({
    url: '/users/currentFood',
    headers: {
      isToken: false
    },
    method: 'post',
    data: data
  })
}